Optimal. Leaf size=81 \[ \frac{(a \sin (e+f x)+a)^m (c-c \sin (e+f x))^n (g \cos (e+f x))^{-2 m} \, _2F_1\left (1,n-m;-m+n+1;\frac{1}{2} (1-\sin (e+f x))\right )}{2 f g (m-n)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.230153, antiderivative size = 81, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {2853, 12, 2667, 68} \[ \frac{(a \sin (e+f x)+a)^m (c-c \sin (e+f x))^n (g \cos (e+f x))^{-2 m} \, _2F_1\left (1,n-m;-m+n+1;\frac{1}{2} (1-\sin (e+f x))\right )}{2 f g (m-n)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2853
Rule 12
Rule 2667
Rule 68
Rubi steps
\begin{align*} \int (g \cos (e+f x))^{-1-2 m} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^n \, dx &=\left ((g \cos (e+f x))^{-2 m} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^m\right ) \int \frac{\sec (e+f x) (c-c \sin (e+f x))^{-m+n}}{g} \, dx\\ &=\frac{\left ((g \cos (e+f x))^{-2 m} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^m\right ) \int \sec (e+f x) (c-c \sin (e+f x))^{-m+n} \, dx}{g}\\ &=-\frac{\left (c (g \cos (e+f x))^{-2 m} (a+a \sin (e+f x))^m (c-c \sin (e+f x))^m\right ) \operatorname{Subst}\left (\int \frac{(c+x)^{-1-m+n}}{c-x} \, dx,x,-c \sin (e+f x)\right )}{f g}\\ &=\frac{(g \cos (e+f x))^{-2 m} \, _2F_1\left (1,-m+n;1-m+n;\frac{1}{2} (1-\sin (e+f x))\right ) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^n}{2 f g (m-n)}\\ \end{align*}
Mathematica [A] time = 68.2423, size = 115, normalized size = 1.42 \[ \frac{(a (\sin (e+f x)+1))^m (c-c \sin (e+f x))^n (g \cos (e+f x))^{-2 m} \sec ^2\left (\frac{1}{4} (2 e+2 f x-\pi )\right )^{n-m} \, _2F_1\left (n-m,n-m;-m+n+1;-\tan ^2\left (\frac{1}{4} (2 e+2 f x-\pi )\right )\right )}{2 f g (m-n)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 10.299, size = 0, normalized size = 0. \begin{align*} \int \left ( g\cos \left ( fx+e \right ) \right ) ^{-1-2\,m} \left ( a+a\sin \left ( fx+e \right ) \right ) ^{m} \left ( c-c\sin \left ( fx+e \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (g \cos \left (f x + e\right )\right )^{-2 \, m - 1}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-c \sin \left (f x + e\right ) + c\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\left (g \cos \left (f x + e\right )\right )^{-2 \, m - 1}{\left (a \sin \left (f x + e\right ) + a\right )}^{m}{\left (-c \sin \left (f x + e\right ) + c\right )}^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \mathit{sage}_{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]